package MainTest;

/**
 * Created by xuyi on 2016/9/30.
 */
public class Base64 {

    public static void main(String[] args) {

        String encodeToString = org.apache.shiro.codec.Base64.encodeToString("huhuxs".getBytes());//aHVodXhz

        byte[] bytes = org.apache.shiro.codec.Base64.encodeChunked("huhuxs".getBytes());
        System.out.println(bytes.toString());//huhuxs

        System.out.println(encodeToString);//aHVodXhz


        System.out.println(org.apache.shiro.codec.Base64.decodeToString("4AvVhmFLUs0KTA3Kprsdag=="));//乱码



    }


}
